<form style='padding:25px 30px 20px 0' action="{:url()}" data-auto="true" method="post">
    <input type="hidden" name="set_id" value='{$vo.id|default=""}'>

    <div class="layui-form-item">
        <label class="layui-form-label">分类名称</label>
        <div class="layui-input-block">
            <input type="text" name="name" disabled value='{$vo.name|default=""}' required="required" title="请输入分类名称" placeholder="请输入分类名称" class="layui-input">
        </div>
    </div>

    <!--tag_list-->
    {if isset($items) && $items != null}
    {foreach $items as $key=>$itemClass}
    <table class="layui-table notevent" lay-skin="line">
        <thead>
        <tr>
            <th colspan="8"><input data-none-auto="" data-check-target='.list-check_{$key}' type='checkbox'/>&nbsp;{$itemClass.name}</th>
        </tr>
        </thead>
        <tbody>
        {foreach $itemClass.items as $items}
        <tr>
            {foreach $items as $item}
            <td class="tag_item">
                <input class="list-check-box list-check_{$key}" {if condition="in_array($item.id, $vo['item_ids'])"}checked{/if} name="item_ids[]" value='{$item.id}' type='checkbox'/>&nbsp;{$item.name}
            </td>
            {/foreach}
        </tr>
        {/foreach}
        </tbody>
    </table>
    {/foreach}
    {/if}

    <div class="hr-line-dashed"></div>

    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div>

</form>
